//以iphone6屏幕为标准的适配方法
function getPxAutoWidth(px) {
    var positionWidth = 375;
    var width = $(window).width();
    var v1 = px/positionWidth*width;
    return v1+"px";
}
function getPXAutoHeight(px) {
    var positionHeight = 667;
    var height = $(window).height();
    var v1 = px/positionHeight*height;
    return v1+"px";
}
function formateDate(timeStrmp) {

    var date = new Date(parseFloat(timeStrmp));
    Y = date.getFullYear() + '-';
    M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
    D = date.getDate() + ' ';
    h = date.getHours() + ':';
    m = date.getMinutes() + ':';
    s = date.getSeconds();
    return Y+M+D;
}
function addCenterSpace(v) {
    return v.replace(/\s/g, '').replace(/(.{3})/g, "$1 ");
}
